<include file="public:header" />
<!--管理员管理-->
<style>
    .input-text{
        height: auto;}
</style>
<div class="subnav"><div class="content_menu ib_a blue line_x"><a class="on" href="{:u('member/add')}"><em>新会员</em></a><span>|</span></div></div>
<div class="pad_lr_10" style="margin-top: 10px;">
    <form name="searchform" action="{:U('member/index')}" method="get" >
        <div class="explain_col" style="padding: 5px 10px; margin-bottom: 10px;">

            手机号码 :
            <input name="mobile" type="text" class="input-text" size="25" value="{$_GET['mobile']}" />

            会员名 :
            <input name="username" type="text" class="input-text" size="25" value="{$_GET['username']}" />
            <input type="hidden" value="superadmin" name="m"/>
            <input type="hidden" value="member" name="c"/>
            <input type="hidden" value="index" name="a"/>
            <input type="submit" name="search" class="btn" value="{:L('search')}" />
        </div>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('superadmin/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="40">ID</th>
                <th>会员名</th>
                <th>积分</th>
                <th>会员等级</th>
                <th>{:L('email')}</th>
                <th>{:L('mobile')}</th>
                <th>{:L('regtime')}</th>
                <th>{:L('status')}</th>
                <th width=100>{:L('operations_manage')}</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="left">{$val.id}</td>
                    <td align="left">{$val.username}</td>
                    <td align="left">{$val.score}</td>
                    <td align="left">{$level[$val['level_id']]['name']}</td>
                    <td align="left">{$val.email}</td>
                    <td align="left">{$val.mobile}</td>
                    <td align="left">{$val.addtime|date='Y-m-d H:i:s',###}</td>

                    <td align="left">
                        <if condition="$val.status eq 1">
                        <span class="glyphicon glyphicon-ok" style=" color: #00CC00;"></span>
                        </if>
                        <if condition="($val.status eq 0)">
                            <span class="glyphicon glyphicon-remove" style="color: red;"></span>
                        </if>
                    </td>
                    <td align="left" width="150">
                        <a href="javascript:;" class="layer-dialog-more" data-title="家庭成员" data-btn="确定" data-width="520px" data-height="450px" data-url="{:U('member/family', array('id'=>$val['id']))}">家庭成员</a> |
                        <a href="{:U('member/edit', array('id'=>$val['id']))}">{:L('edit')}</a> |
                        <a href="javascript:;" class="layer_confirm" data-url="{:U('member/delete', array('id'=>$val['id']))}" data-msg="{:sprintf(L('confirm_disabled_one'),$val['username'])}">{:L('delete')}</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <div class="btn_wrap_fixed">
        <div id="pages">
            {$page}
        </div>
    </div>
</div>
<include file="public:footer" />
</body>
</html>